package com.wjyf.reducing_bento.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wjyf.reducing_bento.model.entity.InviteReward;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wjyf.reducing_bento.model.vo.InviteRecordVo;
import com.wjyf.reducing_bento.model.vo.InviteRewardVo;

import javax.servlet.http.HttpServletRequest;

/**
 * @author 26439
 * @description 针对表【tb_invite_reward(邀请奖励表)】的数据库操作Service
 * @createDate 2023-04-29 19:14:54
 */
public interface InviteRewardService extends IService<InviteReward> {
    /**
     * 保存邀请奖励信息
     *
     * @param inviterId
     * @param inviteeI
     */
    void saveInviteRewardInfoAndPulsBalance(Long inviterId, Long inviteeI);

    Page<InviteRewardVo> userGetInviteRewardList(Long current, Long pageSize, HttpServletRequest request);

    Page<InviteRewardVo> adminGetInviteRewardList(Long current, Long pageSize);
}
